{% extends "classic.html" %}

{% block content %}
<div class="highlight">
<table>
<tr><td valign="top">
 <img src="http://www.western.edu/academics/library/images/global_search.gif/image_preview" border="0">
 <a href="http://wfxsearch.webfeat.org/wfsearch/search?cid=12233" target="_top">Global Search</a><br />&nbsp;Search <b>databases</b> and Savage Library <b>Catalog</b> in one search.
 </td>
 <td valign="top">
 <a href="http://goldrush.coalliance.org/index.cfm?inst_code=001_WSC" target="_top"><img src="http://grweb.coalliance.org/images/stories/imgs/GR-golddot-logo.gif" width="120px" border="0" alt="Gold Rush Journal Finder" />Journal Finder</a><br/>
 &nbsp;Search Western's electronic resources for a <b>journal</b> or <b>magazine</b>
 </td>
</tr></table>
</div>
<div id="main-content">
<h3>Popular Research Resources</h3>
<table>
<tr>
<td valign="top">
<ul>
{% for resource in popular_resources %}
<li><a href="{{ resource|switch_url:app_view }}" target="_top" onclick="add_use('{{ resource.key }}')">{{ resource.title.display_form }}</a> <a href="#" onclick="expandDescription(this,'r_desc{{ forloop.counter }}')">(info)</a>
<div id="r_desc{{ forloop.counter }}" style="visibility:hidden" class="resource_desc">
{{ resource.manifestation.get_notes.0.value }}<br />
<a href="#" onclick="expandDescription(this,'r_desc{{ forloop.counter }}')">Close</a>
</div> 
</li>
{% ifequal forloop.counter 7 %}
</ul>
</td>
<td valign="top">
<ul>
{% endifequal %}
{% endfor %}
</ul>
</td>
</tr>
</table>
{% if trials %}
<h3>Trial Resources</h3>
<p>Please contact the <a hre="mailto:library@western.edu">library</a> with any comments on these resources that we are considering
purchasing.</p>
<table>
<tr>
<td valign="top">
<ul>
{% for resource in trials %}
<li><a href="{{ resource|switch_url:app_view }}" onclick="add_use('{{ resource.key }}')" target="_top">{{ resource.title.display_form }}</a>
<a href="#" onclick="expandDescription(this,'t_desc{{ forloop.counter }}')">(info)</a>
<div id="t_desc{{ forloop.counter }}" style="visibility:hidden" class="resource_desc">
{{ resource.manifestation.get_notes.0.value }}<br />
<a href="#" onclick="expandDescription(this,'t_desc{{ forloop.counter }}')">Close</a>
</div> 
</li>
{% ifequal forloop.counter 7 %}
</ul>
</td>
<td valign="top">
<ul>
{% endifequal %}
{% endfor %}
</ul>
</td>
</tr>
</table>
</ul>
</td>
{% endif %}
<h3>Resources by Subject</h3>
<table>
<tr>
<td valign="top">
<ul>
{% for subject in concepts %}
<li>
<a href="/classic/list?filter={{ subject.display_form|escape }}">{{ subject.display_form }} ({{ subject.resources|length }})</a>
</li>
{% ifequal forloop.counter 9 %}
</ul>
</td>
<td valign="top">
{% endifequal %}
{% ifequal forloop.counter 18 %}
</ul>
</td>
<td valign="top">
{% endifequal %}

{% endfor %}
</ul>
<td>
</tr>
</table>
<h3>Resources by Title</h3>
<table class="alpha">
<tr>
{% for item in resource_titles %}
<td class='abutton'>
{% if not item.1 %}
{{ item.0|upper }} (0)
{% else %}
<a href="/classic/list?filter={{ item.0|escape }}">{{ item.0|upper }} ({{ item.1|length }})</a>
{% endif %}
</td>
{% ifequal forloop.counter 9 %}
</tr>
<tr>
{% endifequal %}
{% ifequal forloop.counter 18 %}
</tr>
<tr>
{% endifequal %}
{% endfor %}
</tr>
</table>
</div>
{% endblock %}